#!/usr/bin/env python
def handle_priv_msg(irc, author, target, message):
	if message == "!test":
		irc.send("PRIVMSG " + target + " :Testing\r\n")
		
def handle_topic_change(irc, author, target, message):
	irc.send("PRIVMSG " + target + " :Testing\r\n")

def handle_op(irc, sourceNick, targetNick, channel):
	irc.send("PRIVMSG " + channel + " :Op Approved for " + targetNick + ".\r\n")
	
def handle_deop(irc, sourceNick, targetNick, channel):
	if (targetNick == "JamesTheBot"):
		irc.send("PRIVMSG " + channel + " :I want my op back.\r\n")
		
def handle_voice(irc, sourcNick, targetNick, channel):
	if (targetNick == "JamesTheBot"):
		irc.send("PRIVMSG " + channel + " :Thanks for the voice.\r\n")